package com.blue.controller.workflow;

import com.blue.service.workflow.IBusinessDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import com.blue.dto.workflow.BusinessDataDTO;
import com.blue.common.entity.ResponseResult;


/**
 * 流程业务数据表
 *
 * @author nanjie.chen
 * @email 15696471158@163.com
 * @date 2025-03-10
 */
@RestController
@RequestMapping("/workflow/businessData")
@Tag(name = "流程业务数据表")
public class BusinessDataController {
    @Autowired
    private IBusinessDataService businessDataService;


    @PostMapping("/getData")
    @Operation(summary = "获取业务数据")
    public ResponseResult<?> getData(@RequestBody BusinessDataDTO requestDTO) {
        Object object = businessDataService.getData(requestDTO.getInstanceId());
        return ResponseResult.okResult(object);
    }
}
